using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Collections;

namespace Quanly_dethi.Class
{
    class csB_Cauhoi
    {
        private csC_Cauhoi x;

        public csC_Cauhoi X
        {
            get { return x; }
            set { x = value; }
        }
        public csB_Cauhoi()
        {
            x = new csC_Cauhoi();
        }
        public csB_Cauhoi(string servername, string user, string pass, string dbname)
        {
            x = new csC_Cauhoi(servername, user, pass, dbname);
        }
        public DataTable Select()
        {
            return x.Sellect();
        }
        public DataTable Sellect_Mch()
        {
            return x.Sellect_Mch();
        }
        public DataTable getdapandung(int ma)
        {
            return x.GetDapAn(ma);
        }
        public int [] select_dapandung(int ma)
        {
            return x.Sellect_dapandung(ma);
        }
        public DataTable Sellect_Mch_ngaunhien(int madk, int matd)
        {
            return x.Sellect_Mch_ngaunhien(madk, matd);
        }
        public void Update(csE_Cauhoi x)
        {
            this.x.Update(x);
        }
        public void Insert(csE_Cauhoi x)
        {
            this.x.insert(x);
        }
        public void xoa(int madapan1, int madapan2, int madapan3, int madapan4, int macauhoi)
        {
            this.x.xoa(madapan1, madapan2, madapan3, madapan4, macauhoi);
        }
        public DataTable select_chtheoma(int ma)
        {
            return this.x.Sellect_Mch(ma);
        }
    }
}
